import request from '@/utils/request'

// 查询signInRule列表
export function listSignInRule(query) {
  return request({
    url: '/system/signInRule/list',
    method: 'get',
    params: query
  })
}

// 查询signInRule详细
export function getSignInRule(id) {
  return request({
    url: '/system/signInRule/' + id,
    method: 'get'
  })
}

// 新增signInRule
export function addSignInRule(data) {
  return request({
    url: '/system/signInRule',
    method: 'post',
    data: data
  })
}

// 修改signInRule
export function updateSignInRule(data) {
  return request({
    url: '/system/signInRule',
    method: 'put',
    data: data
  })
}

// 删除signInRule
export function delSignInRule(id) {
  return request({
    url: '/system/signInRule/' + id,
    method: 'delete'
  })
}
